<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>dil.lexer.Funcs</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "dil.lexer.Funcs";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/dil.lexer.Funcs.html" class="symbol">dil.lexer.Funcs</a></h1>
  
<p class="sec_header">Author:</p>Aziz Köksal
<p class="sec_header">License:</p>GPL3
 <p><b>Maturity:</b> very high.</p>
<dl>
<dt class="decl">char[3] <a class="symbol _variable" name="LS" href="./htmlsrc/dil.lexer.Funcs.html#L8" kind="variable" beg="8" end="8">LS</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#LS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L8">#</a></dt>
<dt class="decl">dchar <a class="symbol _variable" name="LSd" href="./htmlsrc/dil.lexer.Funcs.html#L9" kind="variable" beg="9" end="9">LSd</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#LSd" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L9">#</a></dt>
<dd class="ddef">
<div class="summary">Unicode line separator.</div></dd>
<dt class="decl">char[3] <a class="symbol _variable" name="PS" href="./htmlsrc/dil.lexer.Funcs.html#L10" kind="variable" beg="10" end="10">PS</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#PS" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L10">#</a></dt>
<dt class="decl">dchar <a class="symbol _variable" name="PSd" href="./htmlsrc/dil.lexer.Funcs.html#L11" kind="variable" beg="11" end="11">PSd</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#PSd" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L11">#</a></dt>
<dd class="ddef">
<div class="summary">Unicode paragraph separator.</div></dd>
<dt class="decl">dchar <a class="symbol _variable" name="_Z_" href="./htmlsrc/dil.lexer.Funcs.html#L14" kind="variable" beg="14" end="14">_Z_</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#_Z_" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L14">#</a></dt>
<dd class="ddef">
<div class="summary">Control+Z.</div></dd>
<dt class="decl">bool <a class="symbol _function" name="isUnicodeNewlineChar" href="./htmlsrc/dil.lexer.Funcs.html#L17" kind="function" beg="17" end="20">isUnicodeNewlineChar</a><span class="params">(dchar <em>d</em>)</span>; <a title="Permalink to this symbol" href="#isUnicodeNewlineChar" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L17">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if d is a Unicode line or paragraph separator.</dd>
<dt class="decl">bool <a class="symbol _function" name="isUnicodeNewline" href="./htmlsrc/dil.lexer.Funcs.html#L23" kind="function" beg="23" end="26">isUnicodeNewline</a><span class="params">(char* <em>p</em>)</span>; <a title="Permalink to this symbol" href="#isUnicodeNewline" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L23">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if p points to a line or paragraph separator.</dd>
<dt class="decl">bool <a class="symbol _function" name="isNewline" href="./htmlsrc/dil.lexer.Funcs.html#L34" kind="function" beg="34" end="37">isNewline</a><span class="params">(char* <em>p</em>)</span>; <a title="Permalink to this symbol" href="#isNewline" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L34">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if p points to the start of a Newline.
 <pre class="bnf">
Newline := "\n" | "\r" | "\r\n" | LS | PS
LS := "\u2028"
PS := "\u2029"
</pre></dd>
<dt class="decl">bool <a class="symbol _function" name="isNewline:2" href="./htmlsrc/dil.lexer.Funcs.html#L40" kind="function" beg="40" end="43">isNewline</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isNewline:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L40">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is a Newline character.</dd>
<dt class="decl">bool <a class="symbol _function" name="isEOF" href="./htmlsrc/dil.lexer.Funcs.html#L50" kind="function" beg="50" end="53">isEOF</a><span class="params">(dchar <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isEOF" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L50">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if p points to an EOF character.
 <pre class="bnf">
EOF := "\0" | _Z_
_Z_ := "\x1A"
</pre></dd>
<dt class="decl">bool <a class="symbol _function" name="isEndOfLine" href="./htmlsrc/dil.lexer.Funcs.html#L57" kind="function" beg="57" end="60">isEndOfLine</a><span class="params">(char* <em>p</em>)</span>; <a title="Permalink to this symbol" href="#isEndOfLine" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L57">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if p points to the first character of an EndOfLine.
 <pre class="bnf">EndOfLine := Newline | EOF</pre></dd>
<dt class="decl">bool <a class="symbol _function" name="scanNewline" href="./htmlsrc/dil.lexer.Funcs.html#L64" kind="function" beg="64" end="83">scanNewline</a><span class="params">(ref char* <em>p</em>)</span>; <a title="Permalink to this symbol" href="#scanNewline" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L64">#</a></dt>
<dd class="ddef">
<div class="summary">Scans a Newline and sets p one character past it.</div>
<p class="sec_header">Returns:</p>true if found or false otherwise.</dd>
<dt class="decl">bool <a class="symbol _function" name="scanNewline:2" href="./htmlsrc/dil.lexer.Funcs.html#L87" kind="function" beg="87" end="106">scanNewline</a><span class="params">(ref char* <em>p</em>, char* <em>end</em>)</span>; <a title="Permalink to this symbol" href="#scanNewline:2" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L87">#</a></dt>
<dd class="ddef">
<div class="summary">Scans a Newline and sets p one character past it.</div>
<p class="sec_header">Returns:</p>true if found or false otherwise.</dd>
<dt class="decl">bool <a class="symbol _function" name="scanNewlineReverse" href="./htmlsrc/dil.lexer.Funcs.html#L111" kind="function" beg="111" end="130">scanNewlineReverse</a><span class="params">(char* <em>begin</em>, ref char* <em>end</em>)</span>; <a title="Permalink to this symbol" href="#scanNewlineReverse" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L111">#</a></dt>
<dd class="ddef">
<div class="summary">Scans a Newline in reverse direction and sets end
 on the first character of the newline.</div>
<p class="sec_header">Returns:</p>true if found or false otherwise.</dd>
<dt class="decl">char[] <a class="symbol _function" name="scanIdentifier" href="./htmlsrc/dil.lexer.Funcs.html#L138" kind="function" beg="138" end="153">scanIdentifier</a><span class="params">(ref char* <em>ref_p</em>, char* <em>end</em>)</span>; <a title="Permalink to this symbol" href="#scanIdentifier" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L138">#</a></dt>
<dd class="ddef">
<div class="summary">Scans a D identifier.</div>
<p class="sec_header">Params:</p>
<table class="params">
<tr><td><em>ref_p</em></td><td>where to start.</td></tr>
<tr><td><em>end</em></td><td>where it ends.</td></tr></table>
<p class="sec_header">Returns:</p>the identifier if valid (sets ref_p one past the id,) or
          null if invalid (leaves ref_p unchanged.)</dd>
<dt class="decl">int ptable[256] <a class="symbol _variable" name="ptable" href="./htmlsrc/dil.lexer.Funcs.html#L156" kind="variable" beg="156" end="173">ptable</a>; <span class="attrs">[<span class="stc">static</span>, <span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#ptable" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L156">#</a></dt>
<dd class="ddef">
<div class="summary">ASCII character properties table.</div></dd>
<dt class="decl">enum <a class="symbol _enum" name="CProperty" href="./htmlsrc/dil.lexer.Funcs.html#L176" kind="enum" beg="176" end="184">CProperty</a>; <a title="Permalink to this symbol" href="#CProperty" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L176">#</a></dt>
<dd class="ddef">
<div class="summary">Enumeration of character property flags.</div>
<dl>
<dt class="decl"><a class="symbol _enummem" name="CProperty.Octal" href="./htmlsrc/dil.lexer.Funcs.html#L178" kind="enummem" beg="178" end="178">Octal</a> <a title="Permalink to this symbol" href="#CProperty.Octal" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L178">#</a></dt>
<dd class="ddef">
<div class="summary">0-7</div></dd>
<dt class="decl"><a class="symbol _enummem" name="CProperty.Digit" href="./htmlsrc/dil.lexer.Funcs.html#L179" kind="enummem" beg="179" end="179">Digit</a> <a title="Permalink to this symbol" href="#CProperty.Digit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L179">#</a></dt>
<dd class="ddef">
<div class="summary">0-9</div></dd>
<dt class="decl"><a class="symbol _enummem" name="CProperty.Hex" href="./htmlsrc/dil.lexer.Funcs.html#L180" kind="enummem" beg="180" end="180">Hex</a> <a title="Permalink to this symbol" href="#CProperty.Hex" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L180">#</a></dt>
<dd class="ddef">
<div class="summary">0-9a-fA-F</div></dd>
<dt class="decl"><a class="symbol _enummem" name="CProperty.Alpha" href="./htmlsrc/dil.lexer.Funcs.html#L181" kind="enummem" beg="181" end="181">Alpha</a> <a title="Permalink to this symbol" href="#CProperty.Alpha" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L181">#</a></dt>
<dd class="ddef">
<div class="summary">a-zA-Z</div></dd>
<dt class="decl"><a class="symbol _enummem" name="CProperty.Underscore" href="./htmlsrc/dil.lexer.Funcs.html#L182" kind="enummem" beg="182" end="182">Underscore</a> <a title="Permalink to this symbol" href="#CProperty.Underscore" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L182">#</a></dt>
<dd class="ddef">
<div class="summary">_</div></dd>
<dt class="decl"><a class="symbol _enummem" name="CProperty.Whitespace" href="./htmlsrc/dil.lexer.Funcs.html#L183" kind="enummem" beg="183" end="183">Whitespace</a> <a title="Permalink to this symbol" href="#CProperty.Whitespace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L183">#</a></dt>
<dd class="ddef">
<div class="summary">' ' \t \v \f</div></dd></dl></dd>
<dt class="decl">uint <a class="symbol _variable" name="EVMask" href="./htmlsrc/dil.lexer.Funcs.html#L186" kind="variable" beg="186" end="186">EVMask</a>; <span class="attrs">[<span class="stc">const</span>]</span> <a title="Permalink to this symbol" href="#EVMask" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L186">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">alias CProperty <a class="symbol _alias" name="CP" href="./htmlsrc/dil.lexer.Funcs.html#L188" kind="alias" beg="188" end="188">CP</a>; <span class="attrs">[<span class="prot">private</span>]</span> <a title="Permalink to this symbol" href="#CP" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L188">#</a></dt>
<dd class="ddef"></dd>
<dt class="decl">int <a class="symbol _function" name="isoctal" href="./htmlsrc/dil.lexer.Funcs.html#L190" kind="function" beg="190" end="190">isoctal</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isoctal" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L190">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is an octal digit.</dd>
<dt class="decl">int <a class="symbol _function" name="isdigit" href="./htmlsrc/dil.lexer.Funcs.html#L192" kind="function" beg="192" end="192">isdigit</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isdigit" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L192">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is a decimal digit.</dd>
<dt class="decl">int <a class="symbol _function" name="ishexad" href="./htmlsrc/dil.lexer.Funcs.html#L194" kind="function" beg="194" end="194">ishexad</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#ishexad" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L194">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is a hexadecimal digit.</dd>
<dt class="decl">int <a class="symbol _function" name="isalpha" href="./htmlsrc/dil.lexer.Funcs.html#L196" kind="function" beg="196" end="196">isalpha</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isalpha" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L196">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is a letter.</dd>
<dt class="decl">int <a class="symbol _function" name="isalnum" href="./htmlsrc/dil.lexer.Funcs.html#L198" kind="function" beg="198" end="198">isalnum</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isalnum" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L198">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is an alphanumeric.</dd>
<dt class="decl">int <a class="symbol _function" name="isidbeg" href="./htmlsrc/dil.lexer.Funcs.html#L200" kind="function" beg="200" end="200">isidbeg</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isidbeg" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L200">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is the beginning of a D identifier (only ASCII.)</dd>
<dt class="decl">int <a class="symbol _function" name="isident" href="./htmlsrc/dil.lexer.Funcs.html#L202" kind="function" beg="202" end="202">isident</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isident" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L202">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is a D identifier character (only ASCII.)</dd>
<dt class="decl">int <a class="symbol _function" name="isspace" href="./htmlsrc/dil.lexer.Funcs.html#L204" kind="function" beg="204" end="204">isspace</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isspace" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L204">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is a whitespace character.</dd>
<dt class="decl">int <a class="symbol _function" name="char2ev" href="./htmlsrc/dil.lexer.Funcs.html#L206" kind="function" beg="206" end="206">char2ev</a><span class="params">(char <em>c</em>)</span>; <a title="Permalink to this symbol" href="#char2ev" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L206">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>the escape value for c.</dd>
<dt class="decl">int <a class="symbol _function" name="isascii" href="./htmlsrc/dil.lexer.Funcs.html#L208" kind="function" beg="208" end="208">isascii</a><span class="params">(uint <em>c</em>)</span>; <a title="Permalink to this symbol" href="#isascii" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/dil.lexer.Funcs.html#L208">#</a></dt>
<dd class="ddef">
<p class="sec_header">Returns:</p>true if c is an ASCII character.</dd></dl>
</div>
<div id="footer">
  <p>Copyright © 2007-2008, Aziz Köksal. All rights reserved.</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:12:55 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>